package com.easy.gc;

import java.util.ArrayList;
import java.util.List;

/**
 * @Packge com.easy.gc
 * @Autor linNaibin
 * @Description
 * @Version 1.0
 * @Date 2021/9/28 14:49
 */
public class TestG1 {

    // 打印GC 日志
    // -Xms9m -Xmx9m -XX:+PrintGCDetails
    public static void main(String[] args) {
        try {

            String str = "easy.gc";
            List<String> list = new ArrayList<>();
            for (; ; ) {
                list.add(str);
                str = str + "=" + str;
            }

        } catch (Exception e) {
            e.printStackTrace();
        }

    }
}
